import request from '@/utils/request'
// import { getToken } from '@/utils/storage'

export const getArticels = params => request({
  url: '/interview/query',
  params
  // headers: {
  //   Authorization: 'Bearer ' + getToken
  // }
  // 以后每次请求都要带token,不要在这里写
  // 而是去请求拦截器中 添加token
})

export const getCollectsOrLikes = params => request({
  url: '/interview/opt/list',
  params
})
export const getDetail = id => request({
  url: '/interview/show',
  params: {
    id
  }
})
export const updateLikeOrCollect = data => request.post('/interview/opt', data)
